def pi(num):
    sum = 0
    for i in range(1,num+1):
        sum += (-1)**(i+1) / (2*i-1)
    return sum*4

print(format("num",">6s"),format("m(i)",">10s"))

for i in range(1,902,100):
    print(format(i, ">6d"), format(pi(i), ">10.4f"))